//
//  CTImageProcessing.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/3/23.
//  Copyright (c) 2015年 Suberverter. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^blurryImgBlock)(UIImage * img);

@interface CTImageProcessing : NSObject

/**
 * @brief 图片处理，裁剪图片大小
 */

+(UIImage *)imageCompressionImg:(UIImage *)img
                       WithSize:(CGSize)size;
/**
 * @brief 图片毛玻璃效果处理
 *
 * @brief blur值的区间为 0.02-2.0 推荐0.4
 */
+ (UIImage *)blurryImage:(UIImage *)image
           withBlurLevel:(CGFloat)blur ;

+ (void)blurryImage:(UIImage *)image withBlurLevel:(CGFloat)blur withCompletionHandeler:(blurryImgBlock)block;

@end
